<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个税的计算</title>
</head>
<body>
    <script>
        var yang = 0.2;
        var yi = 0.08;
        var shi = 0.1;
        var zhu = 0.12;
        var s = 2000;
        var l= 7662;

        if (s <= 7662){
            var na = s - s*(0.08 + 0.02 + 0.005 + 0.12) - 3500;
            console.log(na);
        }
        else if(s > 7662){
            var na = s - l*(0.08 + 0.02 + 0.005 + 0.12) - 3500;
            console.log(na);
        }


        if (na < 1500){
            ge = na * 0.3;
            console.log(ge);
        }
        else if(na < 4500){
            ge = na * 0.1 - 105;
            console.log(ge);
        }
        else if(na < 9000){
            ge = na * 0.2 - 555;
            console.log(ge);
        }
        else if(na < 35000){
            ge = na * 0.3 - 2755;
            console.log(ge);
        }
        else if(na < 80000){
            ge = na * 0.35 - 5505; 
            console.log(ge);
        }
        else if(na >= 80000){
            ge = na * 0.45 -13505;
            console.log(ge);

        }

    </script>
</body>
</html>